/*
 * Things to highlight in the example:
 * 1. object can be named with an existing name of a class
 * 2.
 */

package helloscala.practise.chapter2

object OptionalUserProfileInfo {
  val unkownLocation = ""
  val unkownAge = -1
  val unkownWebSite = ""
}

class OptionalUserProfileInfo(
  val location: String = OptionalUserProfileInfo.unkownLocation,
  val age: Int = OptionalUserProfileInfo.unkownAge,
  val webSite: String = OptionalUserProfileInfo.unkownWebSite
) {
  override def toString: String = "Location=" + location + "; age=" + age + "; webSite=" + webSite
}


